//
//  outStockViewCell.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/8.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit

class outStockViewCell: UITableViewCell {
    @IBOutlet weak var dgbh: UILabel!
         
         @IBOutlet weak var OFF: UILabel!

          @IBOutlet weak var PP: UILabel!
          
          @IBOutlet weak var AP: UILabel!
          
          @IBOutlet weak var TF: UILabel!
          
          @IBOutlet weak var PF: UILabel!
          
          @IBOutlet weak var AF: UILabel!
          
         @IBOutlet weak var za: UILabel!
         @IBOutlet weak var zs: UILabel!
         @IBOutlet weak var zd: UILabel!
    
    // MARK: - 自定义属性
    var ViewModel : outStock? {
        
        // 属性监听器
        didSet {
            
            // 1. nil值校验
            guard let ViewModel = ViewModel else {
                return
            }
            dgbh.text = ViewModel.BII
            OFF.text = ViewModel.BRI
            PP.text = ViewModel.WHI
            AP.text = ViewModel.CQ
            TF.text = ViewModel.UN
            PF.text = ViewModel.BT
            AF.text = ViewModel.OVI
            //za.text = ViewModel.ISN
            zs.text = ViewModel.CT
            zd.text = ViewModel.UT
            
        }
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
